package cn.wo.beans;

import java.util.Date;

public class Workorder {
	private int id;
	//private int projectId;
	private Project project;
	private String executor;
	private String description;
	private int orderLevel;
	private Date createDate = new Date();
	
	public Workorder() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getExecutor() {
		return executor;
	}

	public void setExecutor(String executor) {
		this.executor = executor;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getOrderLevel() {
		return orderLevel;
	}

	public void setOrderLevel(int orderLevel) {
		this.orderLevel = orderLevel;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Workorder(Project project, String executor, String description,
			int orderlevel, Date createDate) {
		super();
		this.project = project;
		this.executor = executor;
		this.description = description;
		this.orderLevel = orderlevel;
		this.createDate = createDate;
	}

	public Workorder(int id, Project project, String executor,
			String description, int orderlevel, Date createDate) {
		super();
		this.id = id;
		this.project = project;
		this.executor = executor;
		this.description = description;
		this.orderLevel = orderlevel;
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "Workorder [id=" + id + ", project=" + project + ", executor="
				+ executor + ", description=" + description + ", orderLevel="
				+ orderLevel + ", createDate=" + createDate + "]";
	}
	
	
}
